Construct the pattern, using a nested loop numberΒΆ

Construct the following pattern, using a nested loop number.
Expected output:
1
22
333
4444
55555
666666
7777777
88888888
999999999
for i in range(10):
    print(str(i) * i)

Output:

1
22
333
4444
55555
666666
7777777
88888888
999999999